<? 
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT" ); 
header("Last-Modified: " . gmdate( "D, d M Y H:i:s" ) . "GMT" ); 
header("Cache-Control: no-cache, must-revalidate" ); 
header("Pragma: no-cache" );
?><!DOCTYPE html>
<html>
<head>
    <script src="<?=base_url()?>js/jquery-1.6.4.min.js" type="text/javascript"></script>
    <title><?=$ptitle?></title>
    <script type="text/javascript">
        $(document).ready( function() {
            window.print();
        });   
    </script>
    <style type="text/css" media="all">
        body { margin: 0; }
        tr { page-break-after:auto }
        td.tdslno { padding-left: 5px; }
        div.main {margin: 0 auto; text-align: center;}
        div.formdiv {
            display: inline-block;
            text-align: left;
        }
        
        .right {
            float: right;
            text-align: right;
            font-size: small;
        }
        
        .datagridcontainer tr.h0 td {
            background-color: #606060; color: #FFFFFF; padding: 7px 2px; 
            font-weight: bold;
        }
        
        .datagridcontainer tr td {
           padding: 2px;  
        }
        
        .datagridcontainer tr.d0 td {
        	background-color: #E5E0E0; color: black;
        }
        .datagridcontainer tr.d1 td {
        	background-color: #FFFFFF; color: black;
        }
        
        .datagridcontainer tr.f0 td {
        	background-color: #606060; color: #FFFFFF; padding: 4px 2px; 
            font-weight: bold;
        }
        table.tbl-receipt        {
            border-collapse:collapse;
        }
        
        table.tbl-receipt,
        table.tbl-receipt th, 
        table.tbl-receipt td {
            border: 1px solid black;
        }
        table.tbl-receipt td {
            padding: 6px 3px 6px 3px;
        }
        table.tbl-receipt tr.heading {
            font-weight: bold;
        }
    </style>
</head>

<body>
<?
if (isset($content)) echo $content;
?>
</body>
</html>